﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _05.TwoKeysDictionary
{
    public class Interval
    {
        public int MinValue { get; set; }
        public int MaxValue { get; set; }

        public Interval(int min, int max)
        {
            MinValue = min;
            MaxValue = max;
        }

        public bool IsInside(int value)
        {
            return (value > MinValue && value <= MaxValue);
        }
    }
}